// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using System;
using System.Linq;
using Elastic.Clients.Elasticsearch.Serialization;

namespace Elastic.Clients.Elasticsearch.Aggregations;

[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.TermsAggregationCollectModeConverter))]
public enum TermsAggregationCollectMode
{
	/// <summary>
	/// <para>
	/// Caches the set of documents that fall into the uppermost buckets for subsequent replay.
	/// </para>
	/// </summary>
	[System.Runtime.Serialization.EnumMember(Value = "breadth_first")]
	BreadthFirst,
	/// <summary>
	/// <para>
	/// Expands all branches of the aggregation tree in one depth-first pass, before any pruning occurs.
	/// </para>
	/// </summary>
	[System.Runtime.Serialization.EnumMember(Value = "depth_first")]
	DepthFirst
}